package problema081;


public class CosasViejas {
	/*
	
	public static boolean tieneEscaleraAlA(int jugador){
		boolean[] cartas = new boolean[5];
		int dondeArranca = 0;
		if(jugador == 2) dondeArranca = 5;
		for(int i = 0; i < 5; i++){
			switch(manos[mano][dondeArranca+i].charAt(0)){
				case 'T':  cartas[0] = true;
            			   break;
				case 'J':  cartas[1] = true;
 			   			   break;
				case 'Q':  cartas[2] = true;
	   			           break;
				case 'K':  cartas[3] = true;
	   			           break;
				case 'A':  cartas[4] = true;
	   			   		   break;
				default:   return false;
			}
		}
		boolean res = true;
		for(int i = 0; i < cartas.length; i++) res = res && cartas[i];
		return res;
	}
	
	public static boolean tieneEscalera(int jugador){
		boolean[] cartas = new boolean[13];
		int dondeArranca = 0;
		if(jugador == 2) dondeArranca = 5;
		for(int i = 0; i < 5; i++){
			switch(manos[mano][dondeArranca+i].charAt(0)){
				case '2':  cartas[1] = true;
						   break;
				case '3':  cartas[2] = true;
						   break;
				case '4':  cartas[3] = true;
			               break;
				case '5':  cartas[4] = true;
			               break;
				case '6':  cartas[5] = true;
            			   break;
				case '7':  cartas[6] = true;
						   break;
				case '8':  cartas[7] = true;
						   break;
				case '9':  cartas[8] = true;
						   break;
				case 'T':  cartas[9] = true;
 			   			   break;
				case 'J':  cartas[10] = true;
 			   			   break;
				case 'Q':  cartas[11] = true;
	   			           break;
				case 'K':  cartas[12] = true;
	   			           break;
				case 'A':  cartas[0] = true;
	   			   		   break;
			}
		}
		int pos = 0;
		while(pos != 13){
			if(cartas[pos] == false){
				pos++; continue;
			}else{
				if(cartas[pos] && cartas[pos+1] && cartas[pos+2] && cartas[pos+3] && cartas[pos+4]){
					cartaPosta[jugador-1] = pos+4;
					return true;
				}
			}
		}
		return false;
	}
	
	public static boolean tienePoker(int jugador){
		Map<Character,Integer> cartas = new HashMap<Character,Integer>();
		int dondeArranca = 0;
		if(jugador == 2) dondeArranca = 5;
		for(int i = 0; i < 5; i++){
			cartas.put(key, value)(manos[mano][dondeArranca+i].charAt(0));
		}
		return cartas.size() == 2;		
	}*/

}
